package org.inspursc.s0517.health.evaluation.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;


/**
 * @author B_Dream
 * @date 2018/6/7 9:15
 */
@Data
public class SurveyAnswerDTO implements Serializable {

    private Integer id;
    /**
     * 被评估人Id
     */
    @NotNull(message = "被评估人不能为空")
    private Integer personnelId;

    /**
     * 组织机构id
     */
    @NotNull(message = "组织机构ID不能为空")
    private Integer organizationId;

    /**
     * 评估师系统账户id
     */
    private Integer appraiserId;

    /**
     * 问卷Id
     */
    @NotNull(message = "问卷Id不能为空")
    private Integer surveyId;


    /**
     * 问卷名字
     */
    @NotEmpty(message = "问卷名字不能为空")
    private String surveyName;


    /**
     *时间
     */
    private Date dateTime;

    /**
     * 回答题目信息列表
     */
    @NotEmpty
    @Valid
    private List<AnRadioDTO> questions;

}
